package com.czr.dao.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.Scope;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.joda.time.DateTime;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 问卷表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("czr_surveys")
@ApiModel(value="czr_surveys对象", description="问卷表")
public class CzrSurveys extends Model<CzrSurveys> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "插入时间")
    @TableField("insert_time")
    private String insertTime;


    @ApiModelProperty(value = "内容")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "状态 0正常 1启用 2停止")
    @TableField("status")
    private Integer status;




    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
